<template>
  <el-icon v-if="name" class="app-icon" :color :size>
    <component :is="name"/>
  </el-icon>
</template>
<script lang="ts">
import {defineComponent} from "vue";
export default defineComponent({
  props: {
    name: {
      type: String,
      required: true
    },
    size: {
      type: [Number, String]
    },
    color: {
      type: String
    }
  }
})
</script>
